<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>汽车维修</title>
<link rel="stylesheet" type="text/css" href="../../css/mokstyle.css" />
<link rel="stylesheet" type="text/css" href="../../css/usedcar.css"/>
<script type="text/javascript">
	function init(){
		if("${info}"!=""){
			alert("${info}");
		}
	}
</script>
<style type="text/css">
body
{
background-color:#FFF;
}
</style>
</head>
<body onload="init();">

<div  id="wrap">
  

       <div class="center_content" style="background-color:#FFFFFF;">
       	<div class="left_content" style="width: 880px;">
        	
            <div class="title"><span class="title_icon"><img src="../../images/bullet1.gif" alt="" title="" /></span>维修信息</div>
        
        	<div class="feat_prod_box">
            
            	<table class="tbimg" cellpadding="0" cellspacing="0">
				<c:forEach items="${mtInfos}" var="mtInfo">
					<tr onmouseover="this.style.background='#CCCCFF'"
						onmouseout="this.style.background='#FFF'">
						<td class="t" width="290px;">
							<a href="/aasimp/mok/maintenance/index_showOneMtInfo?id=${mtInfo.id}" rel="nofollow" target="_blank" style="font-size: 20px;color: blue;">
							${mtInfo.title}</a>
							<br />
							联系人 ${mtInfo.name} / 联系电话 ${mtInfo.mobile}
						</td>
						<td class="t" width="300px;">
							${mtInfo.companyName}
						</td>
						<td class="t" width="100px;">
						<fmt:formatDate value="${mtInfo.releaseTime}" pattern="yyyy-MM-dd"/>
						</td>
						<td class="tc">
						预售价格 ${mtInfo.price} 元
						</td>
						<td>
						</td>
					</tr>
				</c:forEach>
			</table>
			<br />
			<center>
			<div class="pageNo" id="pageNo">
				<a href="/aasimp/mok/maintenance/index_getMtInfo?no=1">首页</a>
				<c:if test="${pageNoSale != 1}">
					<a href="/aasimp/mok/maintenance/index_getMtInfo?no=${pageNoSale-1}">上一页</a>
				</c:if>
				<c:forEach var="i" begin="1"
					end="${pageNoCenterSale + 2}">
					<c:if test="${i <= totalNoSale }">
						<c:choose>
							<c:when test="${i == pageNoSale}">
								<a href="javascript:void(0)">${i}</a>
							</c:when>
							<c:otherwise>
								<a href="/aasimp/mok/maintenance/index_getMtInfo?no=${i}">${i}</a>
							</c:otherwise>
						</c:choose>
					</c:if>
				</c:forEach>
				<c:if test="${pageNoSale +4 < totalNoSale}">
					<a href="/aasimp/mok/maintenance/index_getMtInfo?no=${pageNoSale+1}">下一页</a>
				</c:if>
				<a href="/aasimp/mok/maintenance/index_getMtInfo?no=${totalNoSale}">末页</a>
				&nbsp;&nbsp;&nbsp;&nbsp;共有<label style="color: red;">${totalSale}</label>条信息
			</div>
			</center>
            <div class="clear"></div>
            </div>	 
           
            
            
           <div class="title"><span class="title_icon"><img src="../../images/bullet2.gif" alt="" title="" /></span>配件信息</div> 
           
           <div class="new_products">
            	<table class="tbimg" cellpadding="0" cellspacing="0">
           			<c:forEach items="${ptInfos}" var="ptInfo">
	                    <tr onmouseover="this.style.background='#FFE4D2'"
						onmouseout="this.style.background='#FFF'">
						<td class="img">
                        <div class="new_prod_bg">
							<a href="/aasimp/mok/maintenance/index_showOnePtInfo?id=${ptInfo.id}" rel="nofollow" target="_blank">
							<span class="new_icon"><img src="../../images/new_icon.gif" alt="" title="" /></span>
							<img class="thumb" border="0"  src="${ptInfo.imgUrl}" /> </a>
						</div>
						</td>
						<td class="t">
							<br />
							配件名称 ${ptInfo.name}
							<br />
							<br />
							型号 ${ptInfo.type}<span class='c_ccc'>/</span>数量
							${ptInfo.num}
							
						</td>
						<td class="tc">
						${ptInfo.companyname}
						</td>
						<td class="tc">
						单价 ${ptInfo.price} 元
						</td>
						<td>
						</td>
					</tr>
	                 </c:forEach>
	             </table>
           	</div>
           			<br />
					<center>
					<div class="pageNum" id="pageNum">
						<a href="/aasimp/mok/maintenance/index_getPtInfo?num=1">首页</a>
						<c:if test="${pageNumSale != 1}">
							<a href="/aasimp/mok/maintenance/index_getPtInfo?num=${pageNumSale-1}">上一页</a>
						</c:if>
						<c:forEach var="i" begin="1"
							end="${pageNumCenterSale + 2}">
							<c:if test="${i <= totalNumSale }">
								<c:choose>
									<c:when test="${i == pageNumSale}">
										<a href="javascript:void(0)">${i}</a>
									</c:when>
									<c:otherwise>
										<a href="/aasimp/mok/maintenance/index_getPtInfo?num=${i}">${i}</a>
									</c:otherwise>
								</c:choose>
							</c:if>
						</c:forEach>
						<c:if test="${pageNumSale +4 < totalNumSale}">
							<a href="/aasimp/mok/maintenance/index_getPtInfo?num=${pageNumSale+1}">下一页</a>
						</c:if>
						<a href="/aasimp/mok/maintenance/index_getPtInfo?num=${totalNumSale}">末页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;共有<label style="color: red;">${totalPtSale}</label>条信息
					</div>
					</center>
          
        <div class="clear"></div>
        </div><!--end of left content-->
        
        
       <div class="clear"></div>
       </div><!--end of center content-->
       <div class="footer">
       	<div class="left_footer"></div>
        <div class="right_footer">
       
        </div>
        
       
       </div>
</div>
</body>
</html>